package com.itheima.arraylistdemo;

/*
 *  菜品类:注意这个类的对象只负责对菜品数据进程封装操作(就是存和取),对数据的业务处理会有专门的操作类对象去做
 * */
public class Food {
    private String name;
    private int price;
    private String desc;//描述

    //无参与有参构造
    public Food(){

    }

    public Food(String name, int price, String desc) {
        this.name = name;
        this.price = price;
        this.desc = desc;
    }

    //对应的get和set方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
